const Mock = require('mockjs')

module.exports = function (req) {
  const result = Mock.mock({
    "list|1-10": [{
        id: "@id()", // 随机id
        time: "@date()", // 随机日期
        text: "@cparagraph()", // 随机描述
        time:"@time()",
      }]
})

  return {
    "result": result,
    "error": null,
    "success": true,
    "code": "10000",
    "datetime": Date.now(),
  }
};
